<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 12
  Date: 2023/2/27
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>获取图书的信息</title>
</head>
<body>
    <h1>利用pageContext获取图书信息<hr></h1>
    <%
        //List books = (List)pageContext.getAttribute("books");
        //out.println("books(pageContext):" + books);
    %>
    <h1>利用request获取图书信息<hr></h1>
    <%
        List books = (List)request.getAttribute("books");
        out.println("books(request):" + books);
    %>
    <h1>利用session获取图书信息<hr></h1>
    <%
        //List books = (List)session.getAttribute("books");
        //out.println("books(session):" + books);
    %>
    <h1>利用application获取图书信息<hr></h1>
    <%
        //List books = (List)application.getAttribute("books");
        //out.println("books(application):" + books);
    %>
</body>
</html>
